package com.xiaoshuidi.cloud.module.contract.job;

import com.xiaoshuidi.cloud.framework.tenant.core.job.TenantJob;
import com.xiaoshuidi.cloud.module.contract.service.bill.OwnerOrderService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@TenantJob
public class OwnerRentPaymentOrderJob {
    @Resource
    private OwnerOrderService ownerOrderService;

    /**
     * 业主账单批量进入审批流
     */
    @XxlJob("ownerRenterBatchApproval")
    public void ownerRenterBatchApproval() {
        ownerOrderService.batchApprovalRenterOrder();
    }
}
